home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / ANTENNA / YAGIU112 / END_STOP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-11  |  315 b   |  17 lines

  1. #include <stdio.h>
  2. #include "yagi.h"
  3.  
  4. extern int errno;
  5.  
  6. void end_if_stop_exists(int *i, int iterations,int divisor)
  7. {
  8.     if(*i%divisor==0)
  9.     {
  10.         if(fopen("stop","rt") != NULL)
  11.             *i=iterations;  /* force it to exit very soon */
  12.         errno=0; /* Will be set to non zero if file dont exist */
  13.         printf("%d\r", *i);
  14.     } 
  15. }
  16.  
  17.